import { approveResultDics } from '@/hooks/dicsData'
const defaultWidth = 100
export const tableDefaultHeaders = [
  {
    name: '申请编号',
    key: 'applyId',
    wid: defaultWidth
  },
  {
    name: '申请原因',
    key: 'applyReason',
    wid: defaultWidth
  },
  {
    name: '合同编号',
    key: 'debtId',
    wid: defaultWidth
  },
  {
    name: '项目名称',
    key: 'debtName',
    wid: defaultWidth
  },
  {
    name: '企业编号',
    key: 'enterpriseId',
    wid: defaultWidth
  },
  {
    name: '企业名称',
    key: 'enterpriseName',
    wid: defaultWidth
  }
]
export const tableHeader1 = [
  {
    name: '申请单状态',
    key: 'workflowStatusName',
    wid: defaultWidth
  },
  ...tableDefaultHeaders,
  {
    name: '操作',
    wid: 120,
    fixed: 'right',
    showTooltip: false,
    slotName: 'operate'
  }
]
export const tableHeader2 = [
  {
    name: '申请单状态',
    key: 'workflowStatusName',
    wid: defaultWidth
  },
  {
    name: '审批结果',
    key: 'approveResultName',
    wid: defaultWidth
  },
  ...tableDefaultHeaders,
  {
    name: '审批人',
    key: 'approveBy',
    wid: defaultWidth
  },
  {
    name: '审批时间',
    key: 'approveByTime',
    wid: 170
  },
  {
    name: '审批意见',
    key: 'approveComments',
    wid: defaultWidth
  },
  {
    name: '操作',
    wid: 120,
    fixed: 'right',
    showTooltip: false,
    slotName: 'operate'
  }
]
export const searchItem = [
  {
    name: '企业名称',
    key: 'enterpriseName'
  },
  {
    name: '申请编号',
    key: 'applyId'
  },
  {
    name: '债务名称',
    key: 'debtName'
  },

  {
    name: '审批结果',
    key: 'approveResult',
    type: 'select',
    children: approveResultDics
  }
]
